fix: zlib compression error. Fixes #41