fixed multithreading bug? I hope... maybe the test was wrong?