fix error page rendering