This fixes a regression caused by 40ee9aa957 (Fix stats.cactive accounting regression.) and first released in 4.1.0.
40ee9aa957