fix typeahead not refreshing bug (wip)