DeMar DeRozan scored 24 points, Jerryd Bayless had 21 and the Toronto Raptors beat the Orlando Magic 102-98 on Sunday to snap a six-game losing streak.
Leandro Barbosa added 14 points for the Raptors, James Johnson and Sonny Weems each had 11, and Reggie Evans finished with 17 rebounds.
Dwight Howard had 31 points and nine rebounds and Jameer Nelson scored 21 points for the Magic, who have lost three of four. Brandon Bass and Jason Richardson each scored 13 points and Hedo Turkoglu had 11.
Toronto outscored Orlando 29-19 in the fourth quarter.
Trailing by eight points, 81-73, after Turkoglu scored the opening basket of the fourth, Toronto answered with a 12-3 run to take an 85-84 lead with 8:56 remaining.
Nelson tied it at 90 on a running jumper with 5:22 left but DeRozan replied with a three-point play.
Howard made just one of four from the line after being fouled on consecutive possessions, allowing Toronto to maintain a 95-93 lead with 3:41 left.
Orlando trailed 97-95 with 1:10 to go when Raptors rookie Ed Davis stepped in front of Howard to steal a pass from Nelson. Barbosa missed a jumper with the shot clock winding down but Bayless came up with a key rebound and was fouled as he drove to the basket. Bayless made both, giving the Raptors a 99-95 lead with 24 seconds to play.
Nelson missed a 3 at the other end and Howard got the rebound, but DeRozan stole it. Bayless came up with the ball and was fouled, making one of two to put the Raptors up five, 100-95, with 13.3 seconds left.
For the fourth consecutive game, the Magic were limited to just nine healthy players. Guard Gilbert Arenas (illness) did not travel to Toronto while sixth-man J.J. Redick, out since March 11 with an abdominal strain, rejoined the team after spending the past several days in Vancouver, British Columbia, undergoing treatment on his lingering injury. Guard Chris Duhon missed his third straight game with a sore right thumb.
Toronto also was without two starters. Center Andrea Bargnani sat for the third time in four games with a sore right ankle while guard Jose Calderon missed his second straight game with an injured left hamstring.
NOTES: Toronto had just 22 hours turnaround time between its Saturday night loss at Chicago and Sunday's game against Orlando. ... Eight members of the Blue Jays attended the game but, due to a ticketing mix up, pitchers Ricky Romero and Casey Janssen were seated on press row. ... Maple Leafs goalie James Reimer sat courtside.