fix nested models
update version
Merge pull request #6 from chenzeyu/master

bug fix for nested models