fix resize issues for pie chart.