fixed float bug in color