fix command-line bug