fix some homesocket bugs