Bundesliga leaders Bayern Munich twice squandered the lead and needed an 88th minute winner from Robert Lewandowski to beat bottom club Paderborn 3-2 on Friday.
The Bavarians, who face Chelsea in their Champions League last 16, first leg on Tuesday, are now on 49 points, four points clear of RB Leipzig, who travel to Schalke 04 on Saturday.
“Paderborn challenged us until the very last second,” Bayern coach Hansi Flick told reporters after his team’s eighth win in their last nine league games.
“We were not precise enough in our attacking game and it was a hard match for us. In the second half we tried everything after the 2-2 to get the three points. I’m satisfied with the result. But the Chelsea game will be a completely different one.”
Bayern, who had expected a far easier dress rehearsal ahead of their trip to London next week, went ahead with a Serge Gnabry effort in the 25th minute.
The visitors levelled a minute before the break when Bayern keeper Manuel Neuer spectacularly failed to clear the ball after racing out of his box and Dennis Srbeny slipped it through his legs and went on to and score.
Lewandowski, who came agonisingly close to scoring but was twice denied by Paderborn keeper Leopold Zingerle with a pair of superb saves, broke the deadlock in the 70th with a tap-in after fine work from Gnabry, but the visitors were not yet done.
They caught Bayern off guard once more with another lightning quick break and Sven Michel fired in after Neuer had palmed the ball into his path.
Lewandowski, however, came to the rescue once more, firing home from another Gnabry assist for the winner and his 25th goal in 23 league matches.