hotfix for custom error pages