bug fix on deflate format