update to a new correct number of indices.