remove debug statements from compute_cdf; add workaround

xreplace(reps) without the workaround works, too, but this
issue shold be fixed.