Fix bug in photos