Fix bug in timeline update