e.candidates is not iterable