TOPEKA, Kan. (AP) — Kansas Gov. Jeff Colyer demanded Thursday that Secretary of State Kris Kobach stop advising county elections officials while their battle for the Republican nomination for governor hangs in the balance, accusing him of giving them information "inconsistent with Kansas law."

The close contest between the embattled governor and a conservative lightning rod took an acrimonious turn as Kobach's already tiny lead shrunk from 191 votes to just 121 out of 311,000 ballots cast, after two counties reported discrepancies in their initial tallies.

The counting is not complete because state law says mail-in ballots that are postmarked Tuesday can be accepted by the counties as late as Friday. And county officials still must review perhaps several thousand provisional ballots, given to voters at the polls when their eligibility is in question. They have until Aug. 20 to finish.

Colyer released a letter after his campaign announced that it had set up a "voting integrity" hotline and urged people to report their complaints about the election. Colyer spokesman Kendall Marr said it received "countless" reports, saying he personally knows of several dozen.

"It has come to my attention that your office is giving advice to county election officials — as recently as a conference call yesterday — and you are making public statements on national television which are inconsistent with Kansas law and may serve to suppress the vote in the ongoing primary election process," Colyer said in his letter to Kobach.

As secretary of state, Kobach is the state's top elections official, setting rules, giving county officials guidance and appointing election commissioners in the state's four most populous counties.

Kobach spokeswoman Danedri Herbert said the secretary of state would respond to Colyer's letter Friday.

Kobach, a vocal advocate of tough immigration and voter identification policies, advised Trump's campaign in 2016 and the White House afterward and served as vice chairman of Trump's now disbanded commission on election fraud. Trump tweeted his endorsement of Kobach on Monday, less than 24 hours before polls opened.

But Kobach's no-apology, hard-right conservatism has alienated even some fellow Republicans, and Colyer has sought to project a more mild-mannered, steadier style.

Kobach told reporters Wednesday that he knew of no significant reports of irregularities in Tuesday's primaries, outside of long delays in reporting results from the state's most populous county. There, Johnson County in the Kansas City area, results were delayed by problems with uploading data from new voting machines.

But the totals for the GOP primary for governor's race in two western Kansas counties posted on the secretary of state's website did not match the totals from the counties themselves.

First, in Thomas County in the state's northwest corner, the final, unofficial results posted on the secretary of state's website show Kobach winning there with 466 votes to Colyer's 422. But the tally posted by the Thomas County clerk's office shows Colyer with 522 votes, or 100 votes more, a number the clerk confirmed to The Associated Press on Thursday.

Bryan Caskey, state elections director, said county officials pointed out the discrepancy Thursday following a routine request for a post-election check of the numbers to counties by the secretary of state's office.

"This is a routine part of the process," Caskey said. "This is why we emphasize that election-night results are unofficial."

Thomas County Clerk Shelly Harms said it's possible that her handwriting on the tally sheet faxed to the secretary of state's office was bad enough in the rush of primary-night business that the number for Colyer wasn't clear. A copy she provided to The AP suggested that explanation was generous — the number for Colyer is unambiguously "522."

"They just misread it," she told The Associated Press.

And in Haskell County, elections officials said they had not initially reported returns from one precinct. Once those votes were added, the net result was a gain of 30 votes.