Fix issue with duplicate ontology ids in RTPL