Thread id bug.