Bugfix for typeaheadOpts