bug fixes for ontology pull