Fixed variable scoping error in the repo definitions