Fixed a problem with the chart