fixing groups.leave