Fixing a bug causing duplicate realization relationsips