fix getting threadIdc issues