fix a bug for log uids.size()