Fix subtle bug where person comparison could fail.