Fix issue when the model have an custom id
Merge pull request #39 from Genosite/master

Fix issue when the model have an custom id
Merge branch 'master' into v0.10

* master:
  Fix issue when the model have an custom id