Arturo Vidal and Arjen Robben struck late goals as Bayern Munich extended their lead at the top of the Bundesliga to seven points with a 2-0 success at struggling Ingolstadt.
Robert Lewandowski and Thomas Muller had come closest for the defending champions in the first half, and Lewandowski struck the post in the second.
Carlo Ancelotti's men looked as though they would have to settle for a point against their second-bottom hosts until Chile international midfielder Vidal volleyed home Thomas Muller's centre in the final minute.
Robben then played a one-two with fellow substitute Douglas Costa before firing into the bottom left corner to seal victory in the first minute of stoppage time.