fix for latest version of MagicalRecord