fixed a bug that dealt with category pie chart data