fixing the output. there are strange classes which seems not to be defined as ontology classes