fixed archive script bug