A New Jersey appeals court on Thursday threw out $1.96 million in sanctions against Paul Weiss Rifkind Wharton & Garrison and Lowenstein Sandler for their representation of billionaire businessman Ronald Perelman in litigation as executor of his deceased ex-wife’s estate.

The appeals panel agreed with the trial judge that the lawyers continued to pursue the case after it became clear it had no merit but remanded for reconsideration of the penalty. The judge considered improper factors, such as overaggressive questioning at trial, while failing to take into account mitigating factors like the good reputation of the firms, the panel said.