Fix bug with floats