fixed bugs in ontologyservice