fixing photo bug