Fixed the parent node bug