Fix scope issue when multiple repositories