Seg fault in printArchive fixed