fix autocompletion to match only beginning of the word
swapped last with first