Fix export to S3