fixed some bugs in the PU estimator