This should help to edit aspects of it, such as whether or not it is a directory and such.
I also optimized the node list a bit so as not to use more processing power than necessary.