Fix for multithreading.