fix mistake in groupedBarChart & pieChart