fixed the cursor when reordering sub-fragments