Corrected pivotrow selection when multiple pivot elements are possible