Fixed unparenting issue.