Fixing typeahead to display correct data