Fix major link extraction bug