Fixed thread ID breaking

When editing events the thread ID was unset.