fixed photo upload error caused by git pull