Maxime Chanot celebrates his goal before he gave one away. (Vincent Carchietta-USA TODAY Sports)

New York City FC’s defensive woes continued on Wednesday night as it allowed two late goals en route to a 3-1 defeat to Charlotte FC at Red Bull Arena in Harrison, N.J.

It was the third consecutive match that City surrendered three goals, not necessarily a good sign for a team that has designs of defending its MLS Cup title.

Charlotte struck twice in the final 13 minutes to snap a 1-1 deadlock as the third-place Cityzens (42 points) lost for the third straight time and fell to 12-7-6. The visitors, who are in 10th place in the Eastern Conference improved to 10-14-2 and 32 points.

Only minutes after the opening kickoff, Charlotte grabbed the lead on Karol Swiderski’s goal, although it took several minutes to determine if it was a score. Swiderski ripped a a hard shot on the left side of the that goalkeeper Sean Johnson stopped while he was in the net and the ball was completely over line. However, it took game officials, with the assistance of VAR to determine that it was actually a goal.

NYCFC center back Maxime Chanot equalized in the 28th minute with a marvelous 30-yard strike.

But what Chanot gives, he taketh away as his giveaway led to Brandt Bronico’s go-ahead goal in the 76th-minute.

Christian Fuchs converted a penalty kick in the 91st minute to seal the match.

The game was listed as home game for City, which could not play at Yankee Stadium due to the Yankees’ game with the Tampa Bay Rays.