LONGWY - World champion Peter Sagan won his eighth Tour de France stage despite a technical glitch on the uphill finish to the third stage in Longwy on Monday.
Sagan's foot came unclipped from his pedal as he started to accelerate at the finish, but he kept his cool and still proved too strong for the competition at the end of the 212.5km run from Verviers in Belgium.
"At the end I did unclip, I don't know why. I was thinking 'whats going on?'.
"I was unlucky but I managed to go again and I won, I'm delighted."
Britain's Geraint Thomas finished eighth, two seconds behind the winner, and kept hold of the race leader's yellow jersey.
"There were no crashes, which was good, but it was a really hectic final," said Thomas.
"I'm happy to get through unscathed."
His team leader and reigning champion Chris Froome was a place behind in ninth and moved up from sixth to second overall, still at 12sec.
Australian Michael Matthews was second on the stage with Dan Martin of Ireland third, just ahead of Olympic champion Greg Van Avermaet in fourth.
Matthews moved up to third overall on the same time as Froome with Sagan fourth a second further back.
The 1.6km long uphill finish to the stage was tailor-made for Sagan and the world champion didn't disappoint, proving his power despite his minor problem.
The 50 points for winning also put him into contention to claim the sprinters' green jersey.
He has won that in each of the last five years, although he had only once before failed to claim the jersey by the third stage.
German Marcel Kittel still has that ahead of Tuesday's flat fourth stage that will favour pure sprinters.
American Nathan Brown, who was part of the day's breakaway, took enough points over the day's five climbs to snatch the polkadot king of the mountains jersey from his compatriot and team-mate Taylor Phinney.
There was a six-man breakaway but they were kept to a two-minute lead by an attentive peloton.
The last man standing, France's Liliane Calmejane, was caught with 10km left and then the punchers' teams took over pace-setting.
Australian Richie Porte seemed to make a long bid for home with 800m left but soon ran out of steam, at which point Sagan found himself in front.
"It was a strange finale, Richie went hard in the last 700-800 metres. I tried to catch him but when I caught him I saw how much was left, 400 metres," said Sagan.
"I said 'no, it's too much', so I relaxed a bit before going again."