fixes for calculation of cumulative risk stats.