photos duplication bug fixed