update defect