Fixes a small bug in the auxiliary function in reliabilityEstimator.