invalid buf size for zlibstream fix