Fix failure to getGroupName through function