fix connect issue