fix bug for ontology update