Fix gzip error, issue 438