fix selection inside the autocomplete view when search input changes