Fixed the saving of the MODs records.

Refrences #630.
Merge pull request #30 from claudius108/master

Fixed the saving of the MODs records