Fix dead lock process.