Correction of defect