election bugfix