fixed s3 upload issue