Fixing a problem of reading just a part of a gzipped file