fix subCommand

fix the reported bug about sub command in #227