fixing bug in PlotBPosterior