fix bug upload photo