The state of Kansas reached a settlement with a man who spent 17 years in prison for a crime he says was committed by his doppelgänger.

Kansas Attorney General Derek Schmidt announced the $1.1 million settlement with Richard Anthony Jones, 42, on Tuesday, according to The Associated Press.

Jones is the first person to agree to a settlement through a new Kansas state law that grants compensation for wrongful convictions, Schmidt said.

ADVERTISEMENT

"We are committed to faithfully administering the new mistaken-conviction statute the legislature enacted," Schmidt said.

“In this case, it was possible on the existing record to resolve all issues quickly, satisfy all of the statute's requirements, and agree to this outcome so Mr. Jones can receive the benefits to which he is entitled by law because he was mistakenly convicted."

Jones will receive a certificate of innocence and state-covered counseling and health care for two years, according to the AP.

Jones was convicted in 1999 of aggravated robbery, and served 17 years of his 19-year sentence before being freed with legal help from the Midwest Innocence Project and the Paul E. Wilson Defender Project at the University of Kansas.

Jones petitioned the state for the compensation earlier this year. The lookalike, Ricky Amos, testified at a June 2017 hearing that he did not commit the robbery.