Fix auto reconnect