Bug fix of photoList nil error