fix s3 upload