fix pie chart issue