fix index defect