fix wifi bug