Fix regression when the last root was disconnect