Fix LI reordering