The trouble arose because some ballots had to be city-only for voters not registered with a party, while others included the presidential primary. Transposed numbers on a spreadsheet -- Cowles called it a "data glitch" -- caused too many ballots to be ordered for one group of voters and not enough for the other, he said.