fix some bugs with the photo wall