Fix domain link count when deleting links