Fixed a MAJOR bug in beta-bernoulli policy