Fixed comparator bug for CandidateValue