Wells Fargo Home Mortgage agreed Wednesday to pay New Jersey $3.98 million and 900 residents $67 million in loan modifications over claims subsidiaries deceptively marketed adjustable-rate mortgages.

The agreement ends a state investigation into whether some mortgages sold by Wachovia Corp., Golden West and World Savings violated the Consumer Fraud Act.