Some outlier detection fixes