NOBUG fixed infinite loop when zlib compression enabled