fixed Candidates class.