fix bug in multi-selection.