fixing up issues when there are no objects to sum.