Fix bug with empty sections