Fix bug autoconnect