fixed checkCandidate