fix longstanding bug with section editing where section headers within