fixed archive mode problems