Hi,
Another way to do it is described in this other post: How does one have the parameters of a model NOT BE LEAFS?