Fixed paths
The assignment to $rootNode is dead and can be removed