fix location of S3 headers