fixed the error pages