fix upload photo fileds badly retrieved