Fix typo when retrieving a valid election