Outlier-detection fixes