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

fixing setter for model 4