fix deleteCandidate in create TaskListener