fix unexpexted end of zlib file
fix bugs