Erie County has agreed to pay more than $1 million to settle claims that corrections officers at the county prison beat a 52-year-old man so severely he eventually sustained strokes, kidney failure and a collapsed or punctured lung.

According to attorneys for Patrick Haight, the county agreed to settle the case Haight v. Erie County for $1.1 million. Although the case, which was filed in the U.S. District Court for the Western District of Pennsylvania, settled in July, it was officially dismissed on Thursday.