fixed problem with model parameters