fix upload photo bug