fix auto threadIdc issue
Merge pull request #1318 from ruil2/threadIdc

fix auto threadIdc issue