SocketLink: fixed bugs