MIAMI (REUTERS) — Eddie Jones’ off-balance drive with 10.5 seconds remaining snapped a tie and lifted the Heat to a 99-97 victory Tuesday over the Milwaukee Bucks, who erased an eight-point deficit in the final four minutes.

Miami snapped a seven-game home losing streak and won for the second time in three tries after ending a 12-game losing streak.

Milwaukee rallied from a 96-88 deficit to tie the contest, 97-97, on Ray Allen’s two foul shots with 34 seconds left, but Jones came through with his second big shot in five days.

He hit a jumper at the regulation buzzer Friday in Seattle, allowing the Heat to snap their long slide with a 98-94 victory.

Milwaukee, which suffered its fifth-straight road loss, had a chance to tie. Allen drove the lane and passed to Anthony Mason, but the former Heat missed with just under two seconds left. The clock expired during the scramble for the rebound.

Jones scored 23 points and Alonzo Mourning added 21 for the Heat, which is the only team in the NBA not to score 100 points this season.

Allen scored 30 points and Sam Cassell 18 for the Bucks, who had a modest two-game winning streak stopped.