fixed stochastic flip_