fix for autologin on wifi connect