Fix a crash when we were trying to compute the linkage too early.