fix how relationships are accessed in getAttribute.