threadId default values is changed to 0 from -1