fix bayesian demo