NEW YORK (AP) -- Maria Sharapova's serve and her groundstrokes were abandoning her. What she had was her conditioning.
The five-time major champion rallied from a set down to beat 95th-ranked Alexandra Dulgheru 4-6, 6-3, 6-2 in the second round of the U.S. Open on Wednesday. Sharapova overcame nine double-faults and 46 unforced errors to improve her record in three-set matches this year to 17-6.
Dulgheru had played just twice since mid-July, and she was dragging as the match approached two hours late in the second set.
On a hot, windy day, with the shadows shifting as late afternoon turned to evening, the fifth-seeded Sharapova avoided another upset on the women's side. Fourth-seeded Agnieszka Radwanska and 21st-seeded Sloane Stephens lost earlier.
''As tricky as it is, you have to expect not to play your best tennis and find a way to win,'' Sharapova said in an on-court interview.
The Russian star won her second French Open title in June but hasn't looked all that sharp since. Still, she hasn't lost in the second round at the U.S. Open since her Flushing Meadows debut in 2003.
Dulgheru has never been past the third round at a Grand Slam tournament and fell to 3-14 against top-10 opponents. The Romanian was ranked as high as 26th in 2011, but later missed a year because of right knee surgery.
Stephens, once a sure bet to stick around for a while at Grand Slam tournaments, suddenly can't even win there.
The 21-year-old American stumbled to her earliest loss at the U.S. Open, upset by 96th-ranked Johanna Larsson.
''Everyone goes through times like this,'' Stephens said. ''I'm not the first person and won't be the last.''
Down a set and a break, Larsson rallied to win 5-7, 6-4, 6-2 to match her best performance at a major tournament. The 26-year-old Swede had been 0-4 at Flushing Meadows before this year.
''I shouted `Come on' a few times, not so much for myself but also to show her that I'm still here to win it,'' Larsson said. ''I know, myself, that when you have an opponent who is fighting to the last point, it is very difficult.''
When the match ended with her 63rd unforced error, Stephens was in such a hurry to leave Arthur Ashe Stadium that she briskly walked around the net to Larsson's side of the court for the handshake.
Larsson has now reached the third round at a major tournament twice this year after breaking through at the French Open.
As Stephens had climbed the rankings, the knock on her was that she would shine in the big-time tournaments and slump in other events: Her Grand Slam record coming into Wimbledon this year was 32-12, while she's 58-57 everywhere else.
Stephens reached at least the fourth round at six straight major tournaments starting with the 2013 Australian Open, when she stunned Serena Williams to make the semifinals. The longest active streak at the time, it ended with a first-round loss at Wimbledon this summer.
Now her stay at her home Grand Slam event is over quickly after she had advanced to at least the third round in three previous trips to the U.S. Open. On the verge of breaking into the top 10 last fall, Stephens has slid to No. 24 in the rankings.