Fix to work with floats.