Fixed race condition bug in the timeline gui