fixed a float issue