Fix buffer problem with GZip option.