Fixed some MagicalRecord stuff