fix issue with reordering when a page has a blank ID