fixed selection of multiple items in case of duplicating ids (#15)