Added a workaround to a bug with CoreData

Not sure if it's my bug, MagicalRecord
or just something to do with XCode being
a DP.