fix the no connected? method bug