fix match on node name type

Fix for #266