Fix restoring network mode preference