fix for deflate