fixed an issue in legacyArchive