Rashard Lewis, as a Washington Wizard, tries to get around Boston Celtics guard Marquis Daniels. (Alex Brandon/AP)

Things were looking great for veteran power forward Rashard Lewis last week. He signed a one-year contract with the Dallas Mavericks. But almost before the proverbial (and maybe literal) ink could dry, the team decided to void the deal after discovering the 34-year-old needed surgery on his right knee.

“It came to our attention during Rashard Lewis’s physical that he is in need of a medical procedure on his right knee,” Donnie Nelson, the Mavs’ president of basketball operations, said in a statement released by the team (via ESPN). “We wish him all the best for a speedy recovery and continued success in his remarkable career.”

As for Lewis’s next move? Well, the first thing he’ll have to do is figure out how serious his injury is. The 16-year-old veteran’s agent Tony Dutt told ESPN he is uncertain of its severity or how long it would put Lewis out for.

Lewis was most recently with the Miami Heat, where he averaged 4.5 points and 1.8 rebounds in 16.2 minutes per game last season. In 2013, he won an NBA championship with the Heat.