A major consumer debt buyer has agreed to waive nearly $18 million in improper judgments in a settlement with New York state.

The state Attorney General’s Office announced the settlement with Encore Capital Group Friday. The state said Encore obtained thousands of default judgments against consumers ordering them to pay debts after the state’s statute of limitations had expired.