quick fix of getThreadNum() problem.