Fix integer division error causing statistics to not be displayed