fixed bug of chart