fix issue with re-ordering after deleting a subsection