Fixed the issue when the SSID is missing.