modify deadlock

modify a deadlock bug