Given the Kennedy family history, it's appropriate that one of his last tasks here on Earth was to fix an election.
Oh surely but even Kennedys have to have some brain function to do that.
I tend to think this was something penned by the people around him.