fixed minor bug in stochastic extended path