fixed bug with selecting same currentGroup
working delete