Correct the way nodes are removed from lists