Settings: fix network settings bugs.