refix photo upload error