fix uploading first photo