A federal appeals court has struck down a procedural loophole increasingly used by defendants to dismiss a class action by paying the lead plaintiff’s damages.

In a Tuesday opinion, a unanimous panel for the U.S. Court of Appeals for the Second Circuit reversed a 2017 Southern District of New York dismissal of a case against Zocdoc Inc., the company behind the popular site for booking online doctor appointments, after it made a $6,000 settlement offer that the lead plaintiff didn’t accept.