The Mavericks -- who are starting two rookies - Dennis Smith (14 points, 10 assists) and Maxi Kleber (nine points) -- have lost four straight games and seven of eight.

Backup point guard Devin Harris, who had missed the past four games due to a concussion, returned to Dallas’ rotation and scored two points in 16 minutes.

Harris’ return was needed because Dallas was without another backup point guard, Jose Juan Barea, who played his high school ball in Miami and has missed two straight games due to a strained left oblique injury.

Dallas led 26-22 after the first quarter, closing the period on a 16-5 run. The Mavericks shot 55.0 percent in the quarter and held Miami to 41.7-percent shooting.

Miami took control in the second quarter, leading by as many as 10 points. But Smith hit a 3pointer at the buzzer as Dallas cut its deficit to 51-46.

Miami dominated the third quarter, building a 75-61 lead. The Heat held Barnes scoreless in the quarter.

The Heat led by as many as 18 points in the fourth quarter, but Dallas rallied. A 3-pointer by Matthews and a free throw by Barnes cut the deficit to 91-88 before Dragic had the answer.