Fixed bug with hasPhotos filter