fix typeahead source is not updated