Studio Bug? Creating Many To Many Relationship to Same Module

I have used Studio to creat a Many:Many relationship between Contact and Contacts to map a normal family hierarchy Grandfather, Father, Son.

This should produce two subpanels on the Contacts module for Parents & Children side of each relationship.

However, some thing goes wrong with the naming of the relationships such that each side gets the same name. This then causes a cascade of problems and the net result is that only one panel is shown.

This extract from /custom/modules/Contacts/Ext/Vardefs/vardefs.ext.php illustrates the problem. The dictionary array is indexed with the same key for both sides of the relationship with the latter overwriting the former.

$dictionary[“Contact”][“fields”][“contacts_contacts_1”] = array (
‘name’ => ‘contacts_contacts_1’,
‘type’ => ‘link’,
‘relationship’ => ‘contacts_contacts_1’,
‘source’ => ‘non-db’,
‘module’ => ‘Contacts’,
‘bean_name’ => ‘Contact’,
‘vname’ => ‘LBL_CONTACTS_CONTACTS_1_FROM_CONTACTS_L_TITLE’,
);
$dictionary[“Contact”][“fields”][“contacts_contacts_1”] = array (
‘name’ => ‘contacts_contacts_1’,
‘type’ => ‘link’,
‘relationship’ => ‘contacts_contacts_1’,
‘source’ => ‘non-db’,
‘module’ => ‘Contacts’,
‘bean_name’ => ‘Contact’,
‘vname’ => ‘LBL_CONTACTS_CONTACTS_1_FROM_CONTACTS_R_TITLE’,
);

Does anyone know where in Studio this is done? SuiteCRM is on Sugar 6.5.20 does Sugar CE 6.5.22 fix this?