Fix bug with demographics editing

- [fixes #42165455]