Fix archive bug