Fix some connect error.