Fixed bug about upload photo