fixed failing instance deletion