fixed relationshipTo bug