fixed problems in multiple selection