fix a commit bug for console app
Merge pull request #830 from ruil2/console_bug

fix a commit bug for console app