Fixed the parent reference function