Set views as static to remove errors after disable error/exception handler