modify deadly lock bug