Fixed no photos error bug