Fix case when node has no ids