Fix array sum and out of base subtotals