fix for error page loading on s3