Small fix for risk calculations