small fix for bayesian update