fix gzip array to buffer problem