Select the correlation result using the ID and do not assume the index
in the array matches the id. This is because results can now be loaded
from files and the IDs may be incomplete.