numberOfPhotos badge fix