fix unselectable issue in tree mode