Fixed bugs with ConsoleHelper class.