Prevent duplicate parent pointers