fix gzip decompression bug