Fix clearing of candidates from previous iterations