correct content length when zipping