Fixed error with floating-point numbers