fix photos deleted bug