Fix restoring network mode preference on reboot