fix the serial mode command line parse bug