Jimmy Butler is expected to still end up taking his talents to South Beach.

The rest of the three-team trade just needs some fixing.

The Heat appeared to have landed Butler in a sign-and-trade from the 76ers on Sunday night, sending Josh Richardson back to Philadelphia and Goran Dragic to the Mavericks, who would help get the deal done, according to multiple reports.

But the three-team trade hit a snag when the Mavericks decided they did not want Dragic, in order to remain flexible with their cap space. He would have been a strong fit with fellow Slovenian and reigning Rookie of the Year Luka Doncic, but is set to make $19.2 million next season.

Later Sunday night, reports surfaced that the Heat would instead send Kelly Olynyk and Derrick Jones Jr. to the Mavericks, only that didn’t last long either. Dallas agreed to the three-team trade thinking they were getting Olynyk and Jones, but Miami did not want to give up Jones, according to the New York Times. That deal also would have needed slight tinkering to meet the correct cap framework.

As Sunday turned into Monday, the Heat were still trying to find a team to take Dragic and complete the sign-and-trade for Butler, who would land a four-year, $142 million max contract, per multiple reports. It was just still to be determined which of Butler’s new teammates will still be in Miami once he gets there.