fix unnecessary model creation when model id set to 0
Merge pull request #51 from kabzon13/master

fix unnecessary model creation when model id set to 0