Fix multithreading.