Fix photo Upload bug