fix commandline bug