pie chart fix