MonteCarlo: Solve a bug