Tweak autocomplete logic.