fix the offset bug
autocomplete text box