Bug with scoped totals.