Fix socket io connection