fixing setter for model