Wrong model serialization
Merge pull request #129 from mrAdm/toJSON-bugfix

Wrong model serialization