fixing model setting method
Merge pull request #15 from liouh/master

fixing setter for model 2