fix gzip deflate bug