Fixed bug with autocomplete selection when window scrolled