fix archive mode