fix a little bug where col/row totals swap for lots of levels