Fixed bug: Blocked when handshake