Fix range floating point error.