MIAMI (AP) — Dwyane Wade hit a 20-foot jumper at the buzzer, giving the Miami Heat a 104-102 win over the Utah Jazz on Saturday night.

Wade finished with 20 points for Miami, which wasted a 16-point second-half lead — but won when the 2006 NBA finals MVP pump-faked, shot and saw the ball bounce off the rim and through the hoop as time expired.

Shaquille O'Neal finished with 17 points and 10 rebounds, and Daequan Cook had 15 points, including a crucial 3-pointer with 28.2 seconds left, for Miami.

Deron Williams scored 22 points, Andrei Kirilenko had 21 and C.J. Miles scored 14 of his 20 points in the fourth for Utah, which took its only lead of the second half on a pair of free throws by Matt Harpring with 46.3 seconds remaining.

But Cook hit his 3-pointer to put Miami back on top and, after Carlos Boozer tied it with a jumper, Wade came through with the winning basket.

Miami beat Utah for the eighth time in nine meetings, improving to 8-19 overall and 4-9 at home.

Boozer, who entered averaging 25.2 points — fourth-best in the NBA — missed his first 10 shots and finished with a season-low 10.

Earl Barron scored 13 points, and Dorell Wright and Ricky Davis had 12 apiece for Miami.

Paul Millsap finished with 12 points for Utah, which scored 39 in the fourth quarter and still fell short.

Miami led 50-42 at the half, in which there were two distinct trends.

—Utah couldn't make a free throw, going 5-for-15.

—The Jazz also couldn't find a way to stop Barron.

Yes, the same Barron who didn't play in Miami's first 25 games this season, entered with all of 82 points in his career and is getting time now only because Alonzo Mourning is gone with torn knee and quadriceps tendons.

The former college star at Memphis took advantage.

Barron scored 11 straight Miami points during one second-quarter stretch and finished with 13 in the period — all before picking up his third foul with 3:04 left.

Deron Williams did his best to keep Utah close, going 6-for-8 from the floor in the half and scoring 13 points to go with five assists.

He also hurt Miami, albeit inadvertently, with his defense.

Wade was shaken up with 30.1 seconds left in the half after being called for charging into the Jazz point guard. He stayed in the game, but walked into the locker room at halftime holding his right shoulder and was clearly bothered at times in the second half.

At the end, though, Wade was just fine.

Miami led by 16 early in the third quarter and by 11 entering the fourth, before Miles — a less-than-likely option, considering he entered averaging 3.5 points — gave Utah hope.

Miles had 11 points, including three 3-pointers, in the first 3:30 of the fourth to get Utah within six.

Notes: Olympic beach volleyball gold medalist Misty May-Treanor and her husband, Florida Marlins catcher Matt Treanor, were courtside. ... Heat G Smush Parker was inactive for the 14th straight game since last month's incident with a female valet parking attendant. So, with PG Chris Quinn (left ankle) expected to miss a week, Miami's backcourt is short-handed. "We're working real hard to resolve it," coach Pat Riley said when asked about Parker. ... The Jazz finished 1-3 on their four-game road trip and have lost eight of their last nine away from home.