Bug fix in archive record creation (bad merge?)