fix wifi checking