fix issue adding users to groups