Fixed typeahead

The typeahead API changed considerably and caused the features that used
it to fail.