Fix timeline rendering bugs