fix missing network when connecting with encrypted networks