fixed upload photos issue