work around zlib bug