fix desroy delete code