Minor fixes to saving autoconnect preference