fixed ErrorReporterListener when using CLI