fixed bug of float