zipnumwriter: fix bugs