fixed reversed NodeList iteration