fix section merging