Fix chart auto-redraw