fixing the photo store bug