temporary fix GCC 6: cannot convert x to y