fix set socket_host during init