fix the bug for consol,when press enter in the console it shoul not
prompt invalid command