fixed non-monotonic cdf issue, for real
fixed non-monotonic cdf issue, for real