Fix redraw bug in timeline