Fix bug in list of photos