Spirit Airlines agreed to pay $8.25 million to settle a class-action lawsuit over its bag fees, attorneys for the plaintiffs disclosed Wednesday.

A group of first-time Spirit flyers who booked their trips through third-party travel sites between 2011-17 sued the airline in 2017, claiming that it did not disclose its bag fees and other extra fees appropriately.

The flyers said the budget airline’s surprise carry-on bag fees were intentionally hidden in an effort to gain profit.