fix the chart variable stuff