fix photo upload with question mark bug