fix is_int bug in ErrorController
remove RedirectOutput