fix S3 redirect