hotfix: fix connect check