Fixed bug in MonteCarloR2