Updated

Novak Djokovic overcame a scare when he landed awkwardly on his right foot and recovered to beat Spain's Marcel Granollers 6-2, 6-0 in the Shanghai Masters on Wednesday.

Roger Federer and Rafael Nadal had fewer problems in their second-round matches. Federer rebounded from an early break to defeat Andreas Seppi 6-4, 6-3, while Nadal, who reclaimed the No. 1 ranking this week, dispatched Alexandr Dolgopolov 6-3, 6-2.

Djokovic hit a running backhand in the first game of the second set and then leaped in the air, wincing in pain.

He called for a medical timeout after the game to have his foot wrapped and appeared slightly tentative after returning to the court, not bothering to chase after a couple of shots.

The Serb dominated the rest of the match, however, closing it out in 70 minutes to set up a third-round match with Italian Fabio Fognini.