fixes bug in stochastic euler example.