Fix photo empty bug