Avoid the double node when searching switch id