chart: fix some issue