Fixed pie chart bug