fix pie chart's legend