Fix show nodes

Fix a bug in show_nodes -I / -R
Also add extra debug info to show which nodes are different