fix a commit bug for console app