Defect rectification