fixed error page rendering