Wataru Endo struck in the 92nd minute against Koln to ensure Stuttgart avoided relegation from the Bundesliga.