Delete relationships fix