Fixed invalid invocation to isCandidate.