add handling for duplicate autocomplete entries