patched bug in settings that caused panics due to nil object access