Fixed reconnect for socket io