Fix bug with node parent references
1.0.1