Fixed the legend of the pie chart