Fix 'close links tabs' bug.