Fix for statistic, handle null division