fix error in self publish of counts