Fix wifi check.