Fixed pie chart issue