Some fixes related to the multiselection in the tree