Fixing Monte Carlo integration for estimating r profile