fixes processCandidateKey method