repair the socket handler reference bug.