Fixing the rigid state switch when double-click on a relation