Fixes relationship augmentation when node has self-relationships