[BUGFIX] Avoid using hardcoded uid of repository record