Missed a spot: buggy lookup in array of external ids.