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

fixing setter for model 5