fix bug in ontology class rendering