Avoid deadlock.