Fix random float bug