fix archive creation issue