Humans select the ballots that are fed into the machines. Machines operate by algorithms written by humans. There is plenty of scope for cheating.