fix a defect