bugfix: Invalid use of Thread.Identity