Solved bug in resampling computation with LOO method