fix bug of selection of last inserted tree node, not necessarily the last displayed...