Fix a bug in the logic for finding a pivot during a merge.