fixing the bug of not setting the repo_location in context