Fixes threading problem.