Fix ranks reordering.