correct a defect