repairing the index