fix zip corruption issue

not sure if it can fix the issue because I cannot reproduce it locally