Kaegi's legal effort to knock Raila off the ballot was successful at the trial level, with the court agreeing that Raila's signature-collection campaign involved "a pattern of fraud." But the ruling came late in the process, so her name still appeared on the ballot. Eventually, an appellate court overturned the ruling just a week before the election. By then, nearly 90,000 early ballots had been cast, and those voters had been told votes for Raila would not count.