socket reconnect fixed