chart redraw bug fix