fix callback call for autoconnect