fix S3 headers