fixed int/float bug