fix uploading to S3