fixed error page bug