Fix RoleID missing in API set global variables