fixed console input bug