fix tab completion in command mode