remove deadlock