fix up the socket losing by accident