Fix remove when removed node is an entry of the dom property