Prefer explicitly set node id

The explicitly set node id should be prefered over the label.