A judge in a California federal court dismissed a $20 million lawsuit against Lil Wayne.

According to legal documents viewed by Complex, the rapper was in a court battle with his former lawyer Ronald Sweeney, who sued Weezy last year for alleged inadequate compensation. The judge said that the suit wasn’t filed in the proper jurisdiction; rather than California, the suit should have been taken to Florida, where Wayne lives and works.

Sweeney contends that in addition to being the rapper’s lawyer, he also became his manager. Legal docs claim Weezy “failed and refused to pay Plaintiffs his promised 10 percent of the recovery from lawsuits, 10 percent of the sale of master recordings owned by Lil Wayne’s record label and then 17 percent in general commissions that he owes to Plaintiffs in connection with Plaintiff’s day to day management activities.”

Sweeney said he’s also owed money from helping finalize Lil Wayne’s settlement with Cash Money Records.

Weezy says he never hired Sweeney to be his manager, nor was he a part of the team that worked on the Cash Money settlement. He says he hired other lawyers to manage that case.

Wayne countersued the attorney, saying Sweeney overcharged him during their years working together. Sweeney refuted the accusations. The judge’s ruling does allow Sweeney to file again.