fixed error in risk.core