Fixing Thread.join().