fixes minor issues with Pie and Line chart