fix missing zeros in output