Fixed drawing of chart.