fix command line bug