Better bounding box handling for relationships