Fix unexpected links clearing