fix parent reference