The targets are in paint order, so the first selected object is not always the first target. The active row is now matched against the first selected object wherever it is among them.