Fix the thread