fix popup autocomplete bug