Fix code defect.