fix bezier interpolation for floats