fix S3 upload