Fix bug regarding section creation