fixing graph totals