[BUGFIX] Fix selected node count in select tree