CHARLOTTE, N.C. — Kelly Olynyk thought he was fouled. Dwight Howard clearly disagreed.

Charlotte coach Steve Clifford was more concerned about the way his Hornets "butchered" the fourth quarter.

Olynyk scored 14 of his 16 points in the fourth quarter, including a free throw with 0.2 seconds left following Howard's disputed foul, to help the Miami Heat erase a five-point deficit in the final 34 seconds and stun Charlotte 106-105 on Saturday night.

The foul came after Charlotte's Kemba Walker missed on a drive to the basket. Olynyk grabbed the rebound and drove the length of the floor, and Howard appeared to hook Olynyk's right arm on the way to the basket just as Olynyk started to lose control of the ball. Olynyk fell to the ground as the whistle blew, enraging the home crowd.

Olynyk missed the first free throw, but calmly made the second to give the Heat the lead.

Charlotte's inbound heave was deflected away as time expired.

"He had already lost the ball and was falling before I even pushed him," Howard said. "I just thought that it was something that shouldn't have been called at that point in the game. They should have just let the clock run out and let the teams duel it out in overtime."

Olynyk saw it a little different.

"We were just trying to push the ball and make a play and they fouled," Olynyk said.

Heat coach Erik Spoelstra said his team has worked on that scenario in practice with his point guards, but never with the 7-foot Olynyk.

"I think it surprised them," Spoelstra said.

The crowd stood shouting and booing as officials left the floor.

Clifford was more upset by the fourth-quarter collapse. He called out his team for a "total lack of concentration, intensity and technique" in his opening statement following the game.

Wayne Ellington had 26 points on six 3-pointers and Joe Johnson added 22 points for the Heat.

Nic Batum scored a season-high 26 points and Walker had 22 for Charlotte, which had a two-game winning streak snapped. Howard had 14 points and 15 rebounds.

With Miami trailing 105-100, Johnson got free for a dunk. The Hornets inbounded the ball to Batum, but Josh Richardson stripped the ball and passed it to Johnson, who knocked down a 3-pointer from the wing to tie it.

"I didn't see him," Batum said. "I was facing the (inbounder) and he came in from behind. I had no idea he was behind me. I barely touched the ball. ... I don't have eyes in the back of my head."

The Hornets trailed by eight in the third quarter before Batum got hot. The French shooting guard scored 14 points during a 16-6 run to give the Hornets their first lead since 2-0.

Charlotte stretched the lead to 10, outscoring the Heat 35-17 in the third quarter.

"They just lit us up," Spoelstra said. "It looked a lot like last night. Guys took ownership of it. Our defensive intensity in the fourth quarter was the best part and the most consistent part of it during the game."

Down 10 to start the fourth quarter, Olynyk made three 3-pointers to help cut the lead to three.

TIP-INS

Heat: Goran Dragic sat out with a bruised knee. ... The Heat shot 51 per cent from the field in the first half to build a 57-48 lead.

Hornets: Howard had 14 points and 15 rebounds for the Hornets.

UP NEXT

Heat: Wrap up a five-game road trip on Monday night at Houston.

Hornets: Host Sacramento on Monday night.

___

More AP basketball: https://apnews.com/tag/NBAbasketball