fixing knife delete of terminated node