Fix case where parentnodes present