fixed bug with multiple elections