fix cdf function

fix cdf function