fixed nodeList check