fixed bug with deleting user groups