workaround for currentNode enumeration