fixed the responsiveness of autocomplete