Fix a bug with typing a command.