Improved handling of duplicate tags and large autocomplete delays