Fix connect failed