Minor bugfix to demographics generator.