Fix bug that caused sections to not save.