Ensure id.
Merge pull request #58 from cleandart/auto-assign-id

Auto assign