totals row bugfix