fix model type bug.
Merge pull request #457 from forumbyr/master

fix model type bug.