Fixed a bug with console parser