fix model instantiation bayes models