fixed some anomalies concerning the candidates deletion process