Bug with multithreading has been fixed