Fixed bug with pending totals.