bugfix - archiveid not getting set correctly