Fixed the chart problem