Fix connect failure.