Fix parent nodes