Change IndexPack.renamePack to renameAndOpenPack