fixed zlib switch issue