Issue #loop-65 by cableman: Fixed undefined index in statistics