fixed bug in index
fixed poisson_cdf