Fix behavior of timeline.