Some bugfixes for add and delete a section.