Fix elections not resetting in_progress