Fixed the floating point bug.