NSUserDefaults bugfixes