Error in cumulative for uniform distribution