fixes selection on nodes for typeahead highlighting; fixes #197