HARRISON, N.J. (CBSNewYork/AP) — Gonzalo Higuain scored his first MLS goal off a free kick in the 81st minute to lift Inter Miami past the New York Red Bulls 2-1 on Wednesday night.

Inter Miami (4-10-2) snapped a three-match losing streak. The Red Bulls (6-8-2) have lost two straight.

READ MORE: Max Scherzer Says Owner Steve Cohen's Commitment To Winning Is Big Reason Why He Signed With Mets

Miami goalkeeper John McCarthy came to the near post to stop Jared Stroud, but Stroud crossed to Omir Fernandez for a goal for the Red Bulls in the 53rd minute.

READ MORE: 'I Want Justice For Him:' Father Of Zayid Muthana, Bodega Owners Call For Protection After 18-Year-Old Shot At Family Store In Brooklyn

Two minutes later, Miami’s Lewis Morgan lofted a cross from distance that bounced over a couple of defenders to Matias Pellegrini, who beat goalkeeper David Jensen from close range for his first goal this season.

The Red Bulls’ Tom Barlow almost scored on a header when McCarthy came out of the box, but Blaise Matuidi made a sliding clearance in the 18th minute. Six minutes later, Barlow nearly chipped in a goal, but McCarthy, starting for the injured Luis Robles, made a left-handed save.

MORE NEWS: Caroline Simmons Officially Sworn In As Stamford Mayor

(© Copyright 2020 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)