fixed bug with floats