Fixing to support new output of demographics from bb.js