bug fix in connection checking