Fix executing threads.