Fix for nodes with undefined parent