Integrating d4013f28ba2217155afbfd07453fc3f7d901469f

- This commit is a fix for the issue
https://github.com/magicalpanda/MagicalRecord/issues/377.