Fix command name not being completed when an existing command name is fully typed in