Deadlock solved