A late try from Francois Louw has earned Bath a dramatic 27-22 win at French side Agen in the Amlin Challenge Cup.
Benjamin Petre's converted try gave the hosts an early lead before Stephen Donald kicked over Bath's first points of the game.
Michael Claassens's unconverted score kept the visitors in touch but Raphael Lagarde's penalty gave Agen a 10-8 advantage at the break.
Kyle Eastmond and Donald both went over in the second half to put Bath ahead, but Lagarde's kicking kept the French side in contention.
A huge kick from Lagarde then edged his side to within a point of their opponents before his fifth penalty of the contest with nine minutes to play looked to have handed them a narrow win.
However, Louw's try was given by the video referee in the final moments of the match to earn Bath the bonus-point victory.