s3 redirect fix