gzip fix. Fixme: zlib fix instead of gzip.