Fix parent name not being set for nodes with parents