Fixed bad reference to totals.