fixed auto insert issue with new typeahead