fix archive and index