Fixed loading of gallery even if data does not exist on cache