PORTLAND, Ore. (AP) — Thomas McNamara scored in the 65th minute to give New York City FC a 2-1 victory over the Portland Timbers on Sunday.

McNamara's 20-yard shot curled around goalkeeper Jake Gleeson and into the upper corner of the net for his third goal of the season.

NYCFC (4-3-4) took the lead in the 12th minute under controversial circumstances. Defender RJ Allen appeared to use his hands to knock the ball away from Darlington Nagbe, but no foul was called. Instead, Allen sent an inch-perfect 30-yard rolling pass into the path of David Villa, who calmly shot the ball past Gleeson for his eighth goal of the season.

Portland (3-6-3) tied it in the 55th minute. Fanendo Adi fended off a defender and muscled his way in to NYCFC penalty area, where his shot deflected off a New York defender and beat goalkeeper Josh Saunders. It was Adi's 8th goal of the season, tying him for the league lead with Villa and Sebastian Giovinco of Toronto.

Portland, the defending MLS Cup champions, continues to struggle early in the season. The Timbers have lost three in a row and sit second from the bottom in the Western Conference with 12 points.

More From 1460 ESPN