fix connect error