bugfix: territory unsubscription
selected node id check bugfixes