Fix archive script