Fixed another bug in getUserOrGroupId()