fix typo which meant that it was testing the node twice, rather than the node then...