Republican Illinois state House candidate Jim Moynihan was taken aback Monday when he intended to cast a vote for himself and the touch-screen voting machine instead cast a vote for a Democrat.

“While early voting at the Schaumburg Public Library today, I tried to cast a vote for myself and instead it cast the vote for my opponent,” Moynihan told the Illinois Review. “You could imagine my surprise as the same thing happened with a number of races when I tried to vote for a Republican and the machine registered a vote for a Democrat.”

Accordingly his faith in the balloting system of Cook County has been shaken, the Illinois Review reported.

While using the machine, Moynihan voted in various races on the ballot and noticed that whenever he voted for a Republican the machine registered a vote for the Democrat opponent. He alerted the election judge and demonstrated the error. Eventually, Moynihan was allowed to vote for himself and other Republicans.

“Clearly, I am concerned that citizens will be unable to vote for the candidate of their choice, especially if they are in a hurry and do not double check their ballot,” Moynihan said. “I cannot say whether or not this was intentional, but Cook County voters deserve better and should not have their right to vote suppressed.”