Fix parent reference.