float bug fix