Fixed a bug in pre-repo-archive