Pennsylvania’s largest court system, the First Judicial District, has revoked a controversial policy that allowed the court to retain nearly one-third of a defendant’s cash bail deposit after their case was fully resolved.

On Wednesday, Philadelphia Court of Common Pleas President Judge Sheila Woods-Skipper issued an order amending its rules to say that, if a defendant is compliant with the bail conditions, bail deposits should be returned in full after a criminal case has been resolved. The previous policy allowed the court to retain 30 percent of a defendant’s cash bail after a case was disposed, and said that any funds that were not claimed with 180 days would be deemed forfeit to the court.