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

fixing setter for model 3