Fixed homotopy for stochastic extended path.

(cherry picked from commit e1308a8192b9dbb800b281580e1d1cc6c040e3b9)