Fixed some copy-paste induced errors in the Core Data stack