Fix bug with subsections reported by Jeroen Ooms