Fix to sometimes missing masses in inference posteriors.