Fixed typeahead not showing up after refactoring