fixed error if no user groups are found
fixed error when no groups are returned