fix bug on cropping chart.