fix the thread cross defect.