fix pie chart update