api fix to ontology return