Fixing setting of ontology terms in programmatic import