Fix AI defect.