Fixed bug involving parent of root node (i.e., null)