How are your course format settings? Are the sections set to be hidden completely when hidden or to still show the section title? I am not sure if this a setting for all course formats but with Collapsed Topics it is found in the Edit Course settings.
Courses and course formats
Hiding "Section 0"?
This discussion has been locked so you can no longer reply to it.