bug fixed pie chart