bugfix: incorrect implementation of gzip