fix to the photo delete