fixed connectivity bug