fix multiple selection index getting