Fixed issues with ontology typeahead