fix delete defect