by slashrsm: Correct logic in node hooks a bit.