Fix autocomplete for commands