fix generating new section bug