Fix the display of totals  closes #6