Fixed error with key autocompletion in CLI