Sections RFE: bug fixes to auto-add sections code