fixed a bug where photos were not fetched