Fixed bug in the statistics that caused a divide-by-zero.