Fixed bugs in error pages