fix for c.p.a.CountBy not initializing properly on null value