fixed a bug in the timeline system