fix for recaclculate totals for categories