fix create zip file to save after all files have been processed