fix spark line redraw