Fix legend of pie chart