Fix parent relation