Fixed bug when dealing with extracting outliers

The wrong matrix was supplied to the function, without references to
host ids. This obviously gave absurd outliers as results.