Fixes multithread test