fix reordering when empty section name was in the middle of the stack problem
forbid creation of orphans