Fix bug when removing existins links