fixed the pie chart