Fixed bug when saving a record to serialize properly.
Merge pull request #17 from westoque/master

Fixed bug when saving a record to serialize properly.