fixed \n cmd input bug