Duplication problem still persists. It seems only first part of proposed patch above was applied and second UID FETCH at 2927 is still equal to "*:*" on master branch. Replacing it by "*" mitigates the problem. I hope it doesn't introduce any new problems, though.