bugfix for attribute error self.demographics