fixed pie chart display bugs