fixed variable assignments in ChartModel