bugfix in extractArchive