Fixed check for outliers