Added fix and test for relationships that go deeper than one level