bug fixed checkConnect

fix infinite loop