Fix auto connect.