fixed error pages issues