fixed connected bridge detect bug