fixing pie chart