bug fix in archiveHandler