fixes zlib example code  bug