Fix bugs in dbg flavor of beta-bernoulli