Fixes 64 bits crash.
Merge pull request #7 from scvsoft/modelPopulateFix

Fixes 64 bits crash.