fixed bug with autocompletion