Fixed invalid reference to consoleWriteLine