fix bug when going to invalid photo url