fix connect error options