freeze deadlock fix