fixes pie chart