fixing photo float bug