try to fix archive function