added deadlock fix example