Fix the threads