fix connection remove in check_inet