Totals row bug fixes