fixed gzip decoding bug