Fix a bug in Core Data setting.