Fixing bug in the uniform linear interpolator