You do know that "it" can refer to two different things at different times, right? In this case the action, which had everything to do with the election, and the charges, which had nothing to do with it.