error with montecarlo sweep