fix autoconnect