fixing error pages.