Merge "Fix the deadlock problem" am: fa228e06f6
am: e8c0e1098e

Change-Id: Ibf2ad3736be9cbe4797c1678e3665be4a19d82ea