fixed the archive bug