Bug fix for ontology loading