Fix bug of Wifi connecting.