Fixed bug in ontology template fields