heap: fix node removal