clean up error pages