ElectionsController - bug fix