Fixed the bug in cmd_parser.