Roger Federer and Novak Djokovic into Miami Masters third round

Roger Federer in action against Harrison

Roger Federer survived a scare to beat teenager Ryan Harrison and reach the third round of the Miami Masters.

The 16-time Grand Slam winner breezed through the first set, before letting a 5-2 lead slip in the next as the 19-year-old American forced a tie-break.

Federer, who won at Indian Wells last week, completed a 6-2 7-6 (7-3) win and now faces Andy Roddick in the last 16.

Top seed Novak Djokovic beat Marcos Baghdatis 6-4 6-4 and next meets fellow Serbian Viktor Troicki.

Troicki rallied to beat qualifier Guillermo Garcia-Lopez 4-6 6-1 6-4.

Federer looked set to beat Harrison in under an hour only to lose his serve at 5-3.

After missing a straightforward overhead, the 30-year-old then stopped playing when he mistook a shout from the stands for a linesman's call, and Harrison duly went on to secure the break.

The match continued for a further 25 minutes before the Swiss recorded his 40th victory in the last 42 matches.

Roddick, who did not face a break point as he beat Gilles Muller of Luxembourg 6-3 6-2, has dropped to 34th in the world rankings, the lowest he has been since 2001.

He has won only two of his 23 matches against Federer but did beat him at this event in 2008.

"There's no getting around the fact that he has been the biggest obstacle in my career," 29-year-old Roddick said. "His game matches up well against mine."

Federer said: "It's unusual to play Andy early in a tournament but I'm sure we'll have a great match."

Number five seed David Ferrer also booked his place in the third round, beating Bernard Tomic in straight sets 6-4 6-4, while eighth seed Mardy Fish defeated Frank Dancevic 6-3 7-6.

Earlier, Serena Williams marched into the fourth round with a comfortable straight-sets victory over Italian Roberta Vinci, the world number 20, who is the highest-ranked player she has beaten this year.

The 10th seed, seeking a sixth title at Key Biscayne, took 67 minutes to book her place in the last 16, winning 6-2 6-1.

Starting her match at 11am, she was finished shortly after midday, having hit 25 winners and committed 20 unforced errors.

"I'm not a morning person," said the 30-year-old, who is without a victory since August. "I actually hate morning matches, but I always do my best at 11 o'clock matches.

"I need trophies," she said. "I want to add more and to do more. There are records to break. So I'll do it. I've just got to believe it. I do believe it."

Williams, playing in her first tournament since will now meet sixth seed Samantha Stosur after she beat South Africa Chanelle Scheepers 2-6 7-5 6-2.

Second seed Maria Sharapova beat American qualifier Sloane Stephens 6-4 6-2 to join Williams in the fourth round. There the Russian will face unseeded compatriot Ekaterina Makarova, who beat Mona Barthel of Germany 6-2 6-4.

But two-times Miami winner Kim Clijsters is out, surviving six match points before finally losing to fellow Belgian Yanina Wickmayer 6-4 7-6 in their third-round encounter.