fixed writing zip file before uncompressing