fix tag autocomplete bug