fix node removal regression