Minor bugs for custom ontologies solved