Bayern Munich coach Pep Guardiola admitted his side were lucky to come away from Hoffenheim with a 2-1 victory.
The visitors equalled a 30-year Bundesliga record of 36 matches unbeaten but had to do it the hard way after falling behind in the 34th minute, when Manuel Neuer's mistake allowed Niklas Sule to put the home side in front.
Bayern responded five minutes later as Franck Ribery's free-kick took a deflection off Mario Mandzukic and nestled in the bottom corner.
Thomas Muller netted the winner 15 minutes from time as Bayern returned to the top of the table.
The win also meant Guardiola's side surpassed a 45-year-old club record for the longest undefeated start to a Bundesliga season, extending their run this season to 11 games to break the record set in the 1968-69 season, when the club claimed their first Bundesliga title.
Despite that achievement, Guardiola conceded his side had been fortunate to claim all three points.
"We had a bit of luck," he said.
"It certainly was not our best performance but we won. Not everything went perfectly, so we will need to correct the way we play."
Meanwhile, goalkeeper Neuer was contrite in admitting fault for the Hoffenheim goal.
"The 1-0 goal was my fault," he said.
"I do not know how that could happen, it was a gift for Hoffenheim.
"We came back, made it 1-1 then in the second half we took the lead. Since we had many opportunities, we deserved to win."
|Leganes 0 Real Madrid 1: Asensio´s late goal lifts pressure on Zidane in Copa quarter-final|
|Toulalan follows Gourvennec out of Bordeaux|
|Dortmund´s Durm suffers torn ankle ligaments|
|Chelsea send Nathan to Belenenses on loan|
|Chelsea in talks over deal for Roma full-back Emerson|
|Gravel for breakfast but no worms on Dyche´s menu|
|Dybala is no Messi - Laudrup thinks comparisons are unfair|
|Dortmund leave Aubameyang out amid Arsenal links|
|Koulibaly would stay at Napoli ´forever´|
|Neymar´s PSG contract has no release clause, lawyer claims|
|Robben relaxed over Bayern contract talks as other clubs circle|
|Henderson returns to Liverpool training|
|Football´s biggest release clauses - Pique joins Messi, Ronaldo and LaLiga´s big boys|
|No offers for Evans yet, says West Brom boss Pardew|
|Stafylidis seals Stoke switch|
|Worry about your own team - Dortmund slam Wenger´s Aubameyang pursuit|
|Praet denies agreeing deal to join Juventus|
|No BBC for Real Madrid´s Leganes clash|
|Stoke close to Stafylidis signing|
|Brisbane Roar 3 Perth Glory 2: Holman settles five-goal thriller|
|Gourvennec leaves Bordeaux after seventh defeat in eight games|
|Pique agrees new long-term Barcelona contract|
|Wenger rules out Ozil sale as talks continue over Wilshere deal|
|Sanchez-Mkhitaryan deal close, says Wenger|
|Meunier blasts ´disgraceful´ PSG fans after Neymar boos|
|Pique demands better at Camp Nou after Espanyol ´insults´|
|Schweinsteiger re-signs with Chicago Fire for 2018|
|Juve trying everything to sign Can, says Marotta|
|Rooney convinced me to join Everton – Walcott|
|Simeone: Sevilla deserved their win|
|Conte calls for VAR improvements|
|Neymar not angered by PSG whistles - Silva|
|FA Cup Review: Wigan dump Bournemouth out, nine-man Chelsea scrape through|
|Valverde rues Barca profligacy in Espanyol defeat|
|Chelsea 1 Norwich City 1 (aet, 5-3 pens): Hazard and Caballero seal Blues progression|
|No generosity from Neymar as Cavani waits to make PSG history|
|Neymar sets Ligue 1 landmark with staggering individual display|
|Espanyol 1 Barcelona 0: Melendo ends unbeaten run|
|Paris Saint-Germain 8 Dijon 0: Neymar hits four as Cavani levels Ibrahimovic record|
|Atletico fan in ´serious condition´ after being stabbed before Sevilla game|
|Atletico Madrid 1 Sevilla 2: Montella´s men stage dramatic first-leg comeback|
|Lukaku will score 30 goals for Man Utd this season, predicts Yorke|
|Liverpool loan Grujic to Cardiff|
|Mbappe: More to come from Neymar & Cavani partnership|
|Messi the greatest ever despite no World Cup win, insists Di Maria|
|Villa determined to earn place in Spain´s World Cup squad|
|Walcott swaps Arsenal for Everton|
|You even learn from Guardiola at home - Otamendi lauds Pep impact|
|Otamendi pens Man City deal to 2022|
|Neymar leads tributes to retiring Ronaldinho|
|Ronaldo must focus on playing - Zidane sidesteps exit talk|
|Zidane still an idol for James despite ´sad´ Madrid exit|
|Stoger will stay at Dortmund if ´everything fits´|
|Bordeaux´s Malcom facing disciplinary action over social media video|
|Ronaldinho retires – The greatest Brazilians to play for Barcelona|
|Athletic reward Williams with contract until 2025|
|Jones taking unlikely inspiration from City in United´s title pursuit|
|Moyes unaware of Chelsea interest in Carroll|
|Verdi wants Bologna stay amid Napoli links|
|Ronaldinho retires – A shining light of Brazil´s 2002 World Cup-winning team|
|Ronaldinho retires – a World Cup and Ballon d´Or among Brazil great´s prizes|
|World Cup glory and Bernabeu magic - Ronaldinho´s best moments for Barca and Brazil|
|Ligue 1 Review: Balotelli at the double as Payet shines and Malcom toils|
|Pato still dreaming of World Cup selection|
|FA Cup Review: Iheanacho makes VAR history, kit confusion reigns|