fixing family loop cases