fix uploading the result to s3