Fix deadlock solution.