fixed bug in function isUserGroup