Fixed small bug in calculating univariate risk curves
Fixed another bug..