fixed upload photo bug