make the two index files consistent.