Swap map and index files