Fix relationship grid bug