fix inserting sections bug