selected elements ids

It was not giving the right selected ids, it's fixed now