I think ive finally fixed the archive creation issue