Fix calculating depth for statistics in MRA.
Merge branch 'feature/hotfix-v3.0.1'