Fixed a gzip related bug