fix  bug : does not call  setCandidateData directly