error pages: correcting error page generation