fix connect remote fail.

Signed-off-by: charlown.cai <charlown@163.com>