Bugfix in typeahead service