Fix Core Data issues.