Avoid deadlock