fix some errors when parsing the command line input parameters