fix wifi connect bug