Fix elections

Fixes #112