Repair errors