Fixed zlib compression issues