fix another leak in ErrorPage class