You change the laws on how the vote is done. This is a legislative or constitutional process, depending on the jurisdiction (state, county, country, etc.)
And if the elections are corrupt, then the corruption needs to be dealt with, or things will continue to devolve.
Note that neither of those are the results of an election (assuming your constitution doesn't have referendums that can affect this).