fix float bug