PROV-692 Fix duplication of relationships issue